/*
********************************************************************************
* Copyright (C) 2021, xiang.D <dx_65535@163.com>.
* All right reserved.
*
* File Name   : user_api.h
* Author      :
* Version     : V1.0
* Description :
* Journal     : 2021-12-17 version v1.0
* Brief       : Blog: https://blog.csdn.net/qq_38750572?spm=1001.2014.3001.5343
* Others      :
                Compile command: make
********************************************************************************
*/

#ifndef __ELEVATOR_H__
#define __ELEVATOR_H__

#include "elevator_srv.h"

class  CElevator {
public:
    ~CElevator();

    // 获取对象实例
    static CElevator* GetInstance();

    // 预约上楼
    int TakeUpOrder(int floor);

    // 预约下楼
    int TakeDownOrder(int floor);

    // 预约到达楼层
    int ArriveFloor(int floor);

private:
    CElevator();

    void Init();

    CElevatorSrv *theElevatorSrv;

    SMsgPacket *mMsgInfo;
};

#endif
